import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

class PromptAction {
  static showSuccess(String msg) {
    Fluttertoast.showToast(
      msg: msg,
      toastLength: Toast.LENGTH_LONG,
      gravity: ToastGravity.BOTTOM,
      webPosition: 'center',
      backgroundColor: const Color.fromARGB(255, 28, 233, 76),
      textColor: Colors.white,
    );
  }

  static showError(String msg) {
    Fluttertoast.showToast(
      msg: msg,
      toastLength: Toast.LENGTH_LONG,
      gravity: ToastGravity.BOTTOM,
      webPosition: 'center',
      backgroundColor: const Color.fromARGB(255, 233, 28, 72),
      textColor: Colors.white,
    );
  }

  static showInfo(String msg) {
    Fluttertoast.showToast(
      msg: msg,
      toastLength: Toast.LENGTH_LONG,
      gravity: ToastGravity.BOTTOM,
      webPosition: 'center',
      backgroundColor: const Color.fromARGB(255, 28, 175, 233),
      textColor: Colors.white,
    );
  }
}
